/**
 * 计划管理 - 路由
 * @author xiaoxujs
 */


//  发运计划
import { getItem } from '../../../assets/fun/Antd/numeFun';
import { MenuItem } from '../../../type/antd';
import ShippingPlan from '../ShippingPlan'; //发运计划
import PlanReview from '../PlanReview'; //  计划审核
import VehicleManagement from '../VehicleManagement'; //车辆管理
import ShippingReport from '../ShippingReport'; // 发运报表




const enumPlanManagement: MenuItem[] = [
    getItem(
        "计划管理",
        "/home/planManagement/shippingPlan",
        <span className="iconfont">&#xe628;</span>,
        [
            getItem("发运计划", "/home/planManagement/shippingPlan", null),
            getItem("计划审核", "/home/planManagement/planReview", null),
        ]
    ),
];

const routerPlanManagement = [
    {
        path: "/home/planManagement/shippingPlan",
        title: "发运计划",
        component: <ShippingPlan />,
    },
    {
        path: "/home/planManagement/planReview",
        title: "计划审核",
        component: <PlanReview />,
    },
    {
        path: "/home/planManagement/shippingPlan/vehicleManagement",
        title: "车辆管理",
        component: <VehicleManagement />,
    },
    {
        path: "/home/planManagement/shippingPlan/shippingReport",
        title: "发运报表",
        component: <ShippingReport />,
    },
];

export {
    enumPlanManagement,
    routerPlanManagement,
}
